package com.rongzhe.house.entity;


import com.rongzhe.house.utils.Base64;

/**
 * Created by zhongyanli on 17/8/20.
 */

public class LoginDataTo {
    private String mobile;
    private String code;
    private String platform = "Android";
    private String channelId;
    private String data;
    private String key;

    public LoginDataTo(String mobile, String code) {
        this.mobile = mobile;
        this.code = code;
        this.channelId = Base64.encode(mobile.getBytes());
    }

    @Override
    public String toString() {
        return "LoginDataTo{" +
                "mobile='" + mobile + '\'' +
                ", code='" + code + '\'' +
                ", plantform='" + platform + '\'' +
                ", channelId='" + channelId + '\'' +
                ", data='" + data + '\'' +
                ", key='" + key + '\'' +
                '}';
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String plantform) {
        this.platform = plantform;
    }

    public String getChannelId() {
        return channelId;
    }

}

